<%
layout("/common/layout.html",{"title":"编辑系统参数"}){ %>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-8">
        <h2>下载管理</h2>
        <ol class="breadcrumb">
            <li><a href="${ctxPath}/admin/main">主页</a></li>
            <li><a>项目管理</a></li>
            <li class="active">项目详情</li>
        </ol>
    </div>
    <div class="col-sm-4">
        <div class="title-action">
            <a class="btn btn-primary btn-sm btn-outline" href="${ctxPath}/project/view/index">
                <i class="fa fa-reply"> </i> 返回列表</a>
        </div>
    </div>
</div>


<div class="wrapper wrapper-content">
    <div class="ibox-content">

        <table class="table table-bordered">
            <thead>
            <tr>
                <th width="10%" class="text-center">标题</th>
                <th>内容</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>项目分类</td>
                <td>
                    <% for(cate in cateList){
                    if(array.contain(projectCateList,cate.id)){ %>
                    <div class="label label-success">&nbsp;${cate.cateName}&nbsp;</div>
                    <% }
                    } %>
                </td>
            </tr>
            <tr>
                <td>项目标题</td>
                <td>${project.title!}</td>
            </tr>
            <tr>
                <td>预算金额</td>
                <td>${project.amount!}元</td>
            </tr>
            <tr>
                <td>项目工期</td>
                <td>${project.duration!}天</td>
            </tr>
            <tr>
                <td>所需人数</td>
                <td>${project.peopleNumber!}人</td>
            </tr>
            <tr>
                <td>工作地址</td>
                <td>${project.workAddress!}</td>
            </tr>
            <tr>
                <td>开始时间</td>
                <td>${project.beginTime!}</td>
            </tr>
            <tr>
                <td>项目简介</td>
                <td>${project.description!}</td>
            </tr>
            <tr>
                <td>项目状态</td>
                <td>${projectStatusText!}</td>
            </tr>
            <tr>
                <td>项目详情</td>
                <td>
                  <textarea class="form-control" cols="10" rows="15" disabled>${projectIntro!}</textarea>
                </td>
            </tr>
            <tr>
                <td>附件资料</td>
                <td class="table-responsive">
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th width="80">文件</th>
                            <th width="10">大小</th>
                        </tr>
                        </thead>
                        <tbody>
                        <% if(isNotEmpty(filesList)){ for(file in filesList){ %>
                        <tr id="${file.id}">
                            <td>
                                <input type="hidden" name="attachList" value="${file.fileUrl!}##${file.fileSize!}">
                                <a target="_blank" href="${uploaderFilesDomain!}${file.fileUrl!}">${webUtil.fileName(uploaderFilesDomain + file.fileUrl)}</a>
                            </td>
                            <td>${file.fileSize!}</td>
                        </tr>
                        <% } } else { %>
                        <tr>
                            <td colspan="3" class="text-center">暂无附件</td>
                        </tr>
                        <% } %>
                        </tbody>
                    </table>
                </td>
            </tr>
            </tbody>
        </table>

    </div>
</div>
<% } %>
<script type="text/javascript">
    //页面JS调用
    require(['web/sysConfig'], function (sysConfig) {
        sysConfig.update();
    });
</script>